package data.join.com.database.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/10/16.
 */
@Entity
public class FileUpload {
    @Id
    public Long id;

    public Long mediaId;

    public Integer type; //0:video,1:image

    public Integer status; //0:not upload,1:upload success

    public String cloudKey;

    public String persistentId;

    @Generated(hash = 1697993742)
    public FileUpload(Long id, Long mediaId, Integer type, Integer status,
            String cloudKey, String persistentId) {
        this.id = id;
        this.mediaId = mediaId;
        this.type = type;
        this.status = status;
        this.cloudKey = cloudKey;
        this.persistentId = persistentId;
    }

    @Generated(hash = 929218664)
    public FileUpload() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMediaId() {
        return this.mediaId;
    }

    public void setMediaId(Long mediaId) {
        this.mediaId = mediaId;
    }

    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCloudKey() {
        return this.cloudKey;
    }

    public void setCloudKey(String cloudKey) {
        this.cloudKey = cloudKey;
    }

    public String getPersistentId() {
        return this.persistentId;
    }

    public void setPersistentId(String persistentId) {
        this.persistentId = persistentId;
    }

}
